import java.util.Scanner;

public class wx2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("***********************************");
        System.out.println("******微型计算器              *******");
        System.out.println("******1、求和                *******");
        System.out.println("******2、求差                *******");
        System.out.println("******3、求积                *******");
        System.out.println("******4、求商                *******");
        System.out.println("******5、求余                *******");
        System.out.println("******6、退出                *******");
        System.out.println("******请选择您想执行的操作        *****");
        System.out.println("***********************************");
        int c = scanner.nextInt();
        if (c == 6) {
            System.exit(0);
        }
        System.out.println("请输入要计算的第一个数字：");
        int a = scanner.nextInt();
        System.out.println("请输入要计算的第二个数字：");
        int b = scanner.nextInt();
        if (c == 1) {
            System.out.println("和为：" + (a + b));
        } else if (c == 2) {
            System.out.println("差为：" + (a - b));
        } else if (c == 3) {
            System.out.println("积为：" + (a * b));
        } else if (c == 4) {
            System.out.println("商为：" + (a / b));
        } else if (c == 5) {
            System.out.println("余数为：" + (a % b));


            System.out.println("符号输入错误！");
        }


    }
}

